This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Type Mismatch ~Justin Minluternivu 1.Dec.03 06:35 PM a Web browser Domino Server All ReleasesAll Platforms
For "normal" NotesItems (fields that aren't Rich Text AND don't contain an error value), the value of the field is returned as an array (or, more properly, a Variant containing an array). You are trying to compare the value of a field (Status) against a string:
If doc.Status = "New" Then
Since doc.Status is an array, you can't compare it directly to a string. You need to "extract" a string from the array before you can compare values:
If doc.Status(0) = "New" Then
This tells the code to look at the first member of the array and compare THAT value to the string "New".